
// ##############################
// ####  note:  bokeweilai http main fun
// ####  create:  TANWENHUI (twh:谭文辉)
// ####  date:   2024/6/18
// ##############################

#ifndef __BKWL_HTTP_H__
#define __BKWL_HTTP_H__
#include "bk_private/bk_init.h"
#include <components/system.h>
#include <os/os.h>
#include <components/shell_task.h>
#include "bkwl_common.h"
// #include "../../../../../../bk_idk/components/bk_https/include/bk_https.h"
#include "../../../../../../bk_idk/components/http/utils_httpc.h"
#include "../../../../../../bk_idk/include/components/webclient.h"
// Z:\home\twh\work\bk7258\bk_avdk_svn\bk_idk\components\bk_https\include\bk_https.h
extern int bkwl_http_init(void);
extern int bkwl_http_download_file(const char *uri);
extern char *bkwl_http_get(const char *uri);
extern int bkwl_http_post(const char *uri, uint8_t *post_data, uint32_t data_len);
extern int bkwl_http_post_formdata(const char *uri, uint8_t *post_data, uint32_t data_len);
extern int bkwl_http_post_base(const char *uri, uint8_t *post_data, uint32_t data_len, uint8_t data_type);
// extern int bkwl_http_post_filedata(const char *uri, uint8_t *post_data, uint32_t data_len);
extern int bkwl_http_post_filedata(const char *uri, uint8_t *post_data, uint32_t data_len, char *device_name);
#endif
